import request from '@/utils/request'

export function getTeacherClasses(data) {
  return request({
    url: '/teacher/classesList',
    method: 'post',
    data
  })
}

export function teacherChangeClass(data) {
  console.log(data)
  return request({
    url: '/teacher/class/update',
    method: 'post',
    data
  })
}

export function teacherAddClass(data) {
  console.log(data)
  return request({
    url: '/teacher/class/create',
    method: 'post',
    data
  })
}

export function teacherGetStudent(data) {
  console.log(data)
  return request({
    url: '/teacher/class/student/list',
    method: 'post',
    data
  })
}

export function getStudentClasses(data) {
  return request({
    url: '/student/classesList',
    method: 'post',
    data
  })
}
